import { post, get, gets, put } from "./http.js";
import api from "./api";


const upload = (data, headers) => post(api.upload, data, headers);
const addUserRecharge = (data, headers) => post(api.addUserRecharge, data, headers);
const rechargeTable = (params, headers) => get(api.rechargeTable, params, headers)
const getInfo = (params, headers) => get(api.getInfo, params, headers)
const leaveManagement = (params, headers) => get(api.leaveManagement, params, headers)
const details = (id, headers) => gets(api.details + id, headers)
const dele = (data, headers) => put(api.dele, data, headers)
const leaves = (data, headers) => post(api.leave, data, headers)
const attend = (data, headers) => post(api.attend, data, headers)
const attendlist = (params, headers) => get(api.attendlist, params, headers)
export { upload, addUserRecharge, rechargeTable, getInfo, leaveManagement, details, dele, leaves, attend, attendlist };